package com.newStart.proxyDemo.dynamicProxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * Project: tobe-better-coder
 * Package: com.newStart.proxyDemo.dynamicProxy
 *
 * @author : Mr.xu
 * @date : 2022/8/16 0:28
 */
public class ProxyerNoImpl implements InvocationHandler {
    SayHelloEnglishImpl sayHelloChinese = new SayHelloEnglishImpl();

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        return method.invoke(sayHelloChinese, args);
    }
}